<template>
	<view class="login-container">
		<view class="login-header">
			<image class="logo" src="/static/logo.png" mode="aspectFit"></image>
			<text class="title">欢迎登录</text>
		</view>
		
		<view class="login-options">
			<u-button type="primary" @click="goToAccountLogin" class="login-btn">手机号登录</u-button>
			<u-button type="info" @click="goToEmailLogin" class="login-btn">邮箱登录</u-button>
		</view>
		
		<view class="login-links">
			<view class="register-link">
				<text>还没有账号？</text>
				<text class="link" @click="goToRegister">立即注册</text>
			</view>
			<view class="forgot-password">
				<text class="link" @click="goToForgotPassword">忘记密码？</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			goToAccountLogin() {
				uni.navigateTo({
					url: '/pages/account-login/account-login'
				});
			},
			goToEmailLogin() {
				uni.navigateTo({
					url: '/pages/email-login/email-login'
				});
			},
			goToRegister() {
				uni.navigateTo({
					url: '/pages/register/register'
				});
			},
			goToForgotPassword() {
				uni.navigateTo({
					url: '/pages/forgot-password/forgot-password'
				});
			}
		}
	}
</script>

<style lang="scss">
.login-container {
	padding: 40rpx;
	min-height: 100vh;
	background-color: #f8f8f8;
	
	.login-header {
		display: flex;
		flex-direction: column;
		align-items: center;
		margin: 80rpx 0;
		
		.logo {
			width: 180rpx;
			height: 180rpx;
			margin-bottom: 30rpx;
		}
		
		.title {
			font-size: 40rpx;
			font-weight: bold;
			color: #333;
		}
	}
	
	.login-options {
		margin-top: 60rpx;
		
		.login-btn {
			margin-bottom: 30rpx;
			height: 90rpx;
			line-height: 90rpx;
			font-size: 32rpx;
		}
	}
	
	.login-links {
		margin-top: 60rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		font-size: 28rpx;
		color: #666;
		
		.link {
			color: #2979ff;
			margin-left: 10rpx;
		}
		
		.forgot-password {
			.link {
				margin-left: 0;
			}
		}
	}
}
</style>
